import { BaseTableModal } from "../CommonTableModal/base";
const SelectLog = ({ ...resetProps }) => {
	const beforeQuerySearch = ({ API_DATA }) => {
		console.log(API_DATA, "API_DATA");
		if (resetProps.SearchType) {
			API_DATA.type = API_DATA.type ? API_DATA.type : resetProps.SearchType;
		}
		API_DATA.logType = resetProps.logType;
		return { ...API_DATA };
	};
	const SupplierSpuProps = {
		title: resetProps.logType == 1 ? "修改日志" : resetProps.logType == 2 ? "删除日志" : "查看日志",
		width: resetProps.width,
		type: "simple",
		footer: false,
		beforeQuerySearch,
		pageSize: 50,
		...resetProps
	};
	return <BaseTableModal {...SupplierSpuProps} />;
};
export default SelectLog;
